package cn.fangline.wo.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 原始房源表
 * </p>
 *
 * @author 抽离
 * @since 2017-04-21
 */
@TableName("origin_house")
public class OriginHouse extends Model<OriginHouse> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
	private Long id;
    /**
     * 城市
     */
	@TableField("city_id")
	private Integer cityId;
    /**
     * 小区
     */
	private String section;
    /**
     * 室
     */
	private Integer room;
    /**
     * 厅
     */
	private Integer hall;
    /**
     * 卫
     */
	private Integer toilet;
    /**
     * 面积
     */
	private Float area;
    /**
     * 总价
     */
	@TableField("total_price")
	private Float totalPrice;
    /**
     * 单价
     */
	@TableField("unit_price")
	private Integer unitPrice;
    /**
     * 封面
     */
	@TableField("img_url")
	private String imgUrl;
    /**
     * 楼层
     */
	private String floor;
    /**
     * 装修
     */
	private String decoration;
    /**
     * 朝向
     */
	private String towards;
    /**
     * 建筑年代
     */
	@TableField("build_year")
	private Integer buildYear;
    /**
     * 网站
     */
	private Integer net;
    /**
     * 外网用户编号
     */
	@TableField("origin_user_id")
	private String originUserId;
    /**
     * 外网房源编号
     */
	@TableField("origin_house_id")
	private String originHouseId;
    /**
     * URL
     */
	private String url;
    /**
     * 用户ID
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 公司ID
     */
	@TableField("corp_id")
	private Integer corpId;
    /**
     * 房源ID
     */
	@TableField("house_id")
	private Long houseId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;

	@TableField("update_time")
	private Date updateTime;

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	private String zone;

	private String title;

	@TableField(exist = false)
	private String avatarUrl;

	@TableField(exist = false)
	private String userName;

	private String address;

	@TableField("from_url")
	private String fromUrl;

	@TableField("pub_time")
//    @TableField(exist = false)
    private String pubTime;

	public String getPubTime() {
		return pubTime;
	}

	public void setPubTime(String pubTime) {
		this.pubTime = pubTime;
	}

	public String getFromUrl() {
		return fromUrl;
	}

	public void setFromUrl(String fromUrl) {
		this.fromUrl = fromUrl;
	}

	public String getZone() {
		return zone;
	}

	public void setZone(String zone) {
		this.zone = zone;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	public String getSection() {
		return section;
	}

	public void setSection(String section) {
		this.section = section;
	}

	public Integer getRoom() {
		return room;
	}

	public void setRoom(Integer room) {
		this.room = room;
	}

	public Integer getHall() {
		return hall;
	}

	public void setHall(Integer hall) {
		this.hall = hall;
	}

	public Integer getToilet() {
		return toilet;
	}

	public void setToilet(Integer toilet) {
		this.toilet = toilet;
	}

	public Float getArea() {
		return area;
	}

	public void setArea(Float area) {
		this.area = area;
	}

	public Float getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Float totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Integer getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(Integer unitPrice) {
		this.unitPrice = unitPrice;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getFloor() {
		return floor;
	}

	public void setFloor(String floor) {
		this.floor = floor;
	}

	public String getDecoration() {
		return decoration;
	}

	public void setDecoration(String decoration) {
		this.decoration = decoration;
	}

	public String getTowards() {
		return towards;
	}

	public void setTowards(String towards) {
		this.towards = towards;
	}

	public Integer getBuildYear() {
		return buildYear;
	}

	public void setBuildYear(Integer buildYear) {
		this.buildYear = buildYear;
	}

	public Integer getNet() {
		return net;
	}

	public void setNet(Integer net) {
		this.net = net;
	}

	public String getOriginUserId() {
		return originUserId;
	}

	public void setOriginUserId(String originUserId) {
		this.originUserId = originUserId;
	}

	public String getOriginHouseId() {
		return originHouseId;
	}

	public void setOriginHouseId(String originHouseId) {
		this.originHouseId = originHouseId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getCorpId() {
		return corpId;
	}

	public void setCorpId(Integer corpId) {
		this.corpId = corpId;
	}

	public Long getHouseId() {
		return houseId;
	}

	public void setHouseId(Long houseId) {
		this.houseId = houseId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Override
	public String toString() {
		return "OriginHouse{" +
				"id=" + id +
				", cityId=" + cityId +
				", section='" + section + '\'' +
				", room=" + room +
				", hall=" + hall +
				", toilet=" + toilet +
				", area=" + area +
				", totalPrice=" + totalPrice +
				", unitPrice=" + unitPrice +
				", imgUrl='" + imgUrl + '\'' +
				", floor='" + floor + '\'' +
				", decoration='" + decoration + '\'' +
				", towards='" + towards + '\'' +
				", buildYear=" + buildYear +
				", net=" + net +
				", originUserId='" + originUserId + '\'' +
				", originHouseId='" + originHouseId + '\'' +
				", url='" + url + '\'' +
				", userId=" + userId +
				", corpId=" + corpId +
				", houseId=" + houseId +
				", createTime=" + createTime +
				", zone='" + zone + '\'' +
				", title='" + title + '\'' +
				", avatarUrl='" + avatarUrl + '\'' +
				", userName='" + userName + '\'' +
				", address='" + address + '\'' +
				'}';
	}
}
